﻿using System;

namespace Neovolve.Extensibility.ReSharper
{
    /// <summary>
    /// The <see cref="AliasTypeMapping"/>
    /// class is used to define a type mapping between an alias type 
    /// and a CLR type. For example, it may define a mapping between bool and Boolean.
    /// </summary>
    internal class AliasTypeMapping
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="AliasTypeMapping"/> class.
        /// </summary>
        /// <param name="aliasTypeName">
        /// Name of the alias type.
        /// </param>
        /// <param name="clrTypeName">
        /// Name of the CLR type.
        /// </param>
        public AliasTypeMapping(String aliasTypeName, String clrTypeName)
        {
            AliasTypeName = aliasTypeName;
            ClrTypeName = clrTypeName;
        }

        /// <summary>
        /// Gets the name of the alias type.
        /// </summary>
        /// <value>
        /// The name of the alias type.
        /// </value>
        public String AliasTypeName
        {
            get;
            private set;
        }

        /// <summary>
        /// Gets the name of the CLR type.
        /// </summary>
        /// <value>
        /// The name of the CLR type.
        /// </value>
        public String ClrTypeName
        {
            get;
            private set;
        }
    }
}